import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '日期',
    align: 'center',
    dataIndex: 'createTime',
    customRender: ({ text, record }) => {
      text = !text ? '' : text.length > 10 ? text.substr(0, 10) : text;
      return text;
    },
  },
  {
    title: '支付方式',
    align: 'center',
    dataIndex: 'paymethod',
  },
  {
    title: '金额',
    align: 'center',
    dataIndex: 'amount',
  },
  // {
  //   title: '所属公司',
  //   align: "center",
  //   dataIndex: 'companyId'
  // },
  // {
  //   title: '明细',
  //   align: 'center',
  //   dataIndex: 'other',
  // },
  // {
  //   title: '备注',
  //   align: "center",
  //   dataIndex: 'remark'
  // },
];

// 高级查询数据
export const superQuerySchema = {
  paymethod: { title: '支付方式', order: 0, view: 'text', type: 'string' },
  amount: { title: '金额', order: 1, view: 'text', type: 'string' },
  createTime: { title: '日期', order: 2, view: 'text', type: 'string' },
  companyId: { title: '所属公司', order: 3, view: 'text', type: 'string' },
  other: { title: '备用', order: 4, view: 'text', type: 'string' },
  remark: { title: '备注', order: 5, view: 'text', type: 'string' },
};
